home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 4 / developer source - volume 4.iso / parad / oct94 / sl_fig02.gif < prev    next >
Graphics Interchange Format  |  1996-07-10  |  11.9 KB  |  641x482  |  4-bit (5 colors)
   ocr: BUBBLE-Dalefleceivedr.changeValue" method changevalue(uar eventinfo valuetvent) var evalDate Date endUar if not isBlank(eventinfo.newvalue() then try ; First try to cast the value as a date. evalDate = date(eventinto.Inro.newvaluet)) - The value I was successtully cast as a date. Now we want to , check if it Falls within our arbitrary date range- if (evalDate < date("01/01/98)) then beepo msgstop(Date Error" - "Date supplied must be greater than 01/01/90!") eventinfo.setErrortode(peBadDate) endif onFail - We Were not able to I successtully cast the value as a Date. - - Set the error code appro ...